﻿<ConfigProvider>
    <Router AppAssembly="@typeof(App).Assembly">
        <Found Context="routeData">
            <RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
            <FocusOnNavigate RouteData="@routeData" Selector="h1" />
        </Found>
        <NotFound>
            <PageTitle>未找到页面</PageTitle>
            <LayoutView Layout="@typeof(MainLayout)">
                <Result Status="404" 
                        Title="404" 
                        SubTitle="抱歉，您访问的页面不存在。" />
            </LayoutView>
        </NotFound>
    </Router>
</ConfigProvider>
